<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
</head>

<body>


<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<div class="title title-article">链接列表</div>

 <table class="table" width="100%" cellpadding="0" cellspacing="0">
    <tr class="first">
     <td width="30" align="center">排序</td>
      <td width="30" align="center">ID</td>
      <td align="left">标题</td>
      <td width="80" align="center">状态</td>
      <td width="150" align="center">操作</td>
    </tr>
    <?php if(is_array($content)): $i = 0; $__LIST__ = $content;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr valign="middle">
      <td width="30" align="center"><?php echo ($list['ord']); ?></td>
      <td width="30" align="center"><?php echo ($list['id']); ?></td>
      <td align="left"><a href="<?php echo ($list['url']); ?>" target="_blank"><?php echo ($list['title']); ?></a></td>
      <td width="80" align="center" onClick="changeStatus(<?php echo ($list['id']); ?>,this)"><?php echo ($list['status'] ? '显示' : '隐藏'); ?></td>
      <td width="150" align="center"><a class="edit" href="<?php echo U('edit',array('type'=>$list['type'],'id'=>$list['id']));?>">修改</a> <a class="del" href="<?php echo U('delete',array('type'=>$list['type'],'id'=>$list['id']));?>">删除</a></td>
    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>




</body>
</html>